<?php 
    include "sendquery_db.php";
    $cid;
    $id;
    $text;
    
    if(isset($_GET['cid'])){
        $cid = $_GET['cid'];    
    }
    if(isset($_GET['id'])){
        $id = $_GET['id'];
    }
    if(isset($_GET['text'])){
        $text = $_GET['text'];
    }
    
    $db = dbservice::getInstance();
    $queryString = "insert into reply(cid,uid,rtext) values('$cid','$id','$text')";
    $result = $db->sendquery($queryString);
    header( 'Location: ../page/cse326_slides.php' );
?>